package com.chixing.clone;

public class Dog implements Cloneable{
    private int id;
    private Cat cat;

    public Dog(int i) {
    }

    public Cat getcat(){
        return cat;
    }

    public void setcat(Cat cat){
        this.cat=cat;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Cat getCat() {
        return cat;
    }

    public void setCat(Cat cat) {
        this.cat = cat;
    }

    protected Object clone() throws CloneNotSupportedException{
        return super.clone();
    }
}
